#! /bin/bash

succ=0
while true 
do
	line=`curl -Is www.hao123.com | grep HTTP`
	#echo $line

	if [[ $line==*"200" ]]; then
		:
		#nop ==== :
		succ=$(($succ + 1))
		echo "succ $succ times"
	else
		echo "fail"
		break
	fi
done
